Skip to content

Conversation

@vlad-perevezentsev
Copy link
Contributor

This PR proposes to refactor the export structure of dpnp_iface.py by moving all python function exports into dpnp/__init__.py
Redundant __all__ declarations and wildcard imports inside dpnp_iface.py have been removed.

This is the first step toward unifying dpnp public API exports and eliminating wildcard imports.
A next PR will remove the remaining wildcard imports in __init__.py and finalize the unified function export

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@github-actions
Copy link
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/2665/index.html

@coveralls
Copy link
Collaborator

coveralls commented Nov 13, 2025

Coverage Status

coverage: 81.424% (-0.02%) from 81.447%
when pulling b210970 on refactor_public_api_exports
into 131c490 on master.

@vlad-perevezentsev vlad-perevezentsev changed the title Refactor dpnp_iface exports Unify dpnp public API exports by refactoring dpnp_iface.py Nov 14, 2025

__all__ = _iface__all__
__all__ += _ifaceutils__all__

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the change to the changelog

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog was updated in the following PR #2666 723e2c1 and contains 2 links to the PRs

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Array API standard conformance tests for dpnp=0.20.0dev1=py313h509198e_29 ran successfully.
Passed: 1229
Failed: 0
Skipped: 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants